home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 June / SGI Freeware 1998 June.iso / dist / fw_ATxgopher.idb / usr / freeware / doc / xgopher / Porting.z / Porting
Encoding:
Text File  |  1998-01-21  |  11.3 KB  |  283 lines

  1. Installing Xgopher on host computer
  2. -----------------------------------
  3.  
  4. This document describes some of the problems that have been reported
  5. to me when installing Xgopher on different computer systems.  I have
  6. included as complete a description of the problem and its solution
  7. as I can.  In most cases I do not have access to these other systems
  8. and can only report second-hand information.
  9.  
  10. There are sections below for Sun,Hewlett-Packard and other machines.
  11. In another section, "Personal testing" I list the machines on which
  12. I have personally compiled and tested Xgopher.
  13.  
  14.     Headings in this file:
  15.     ----------------------
  16.     Sun: Solaris 2.1
  17.     Sun
  18.     Sun: Open Windows
  19.     Hewlett-Packard
  20.     Interactive(SunSoft) Unix 3.0 (with Interactive's X11R4 2.0)
  21.     Dell's R4, 2.2
  22.     Personal Testing
  23.  
  24. Sun: Solaris 2.1
  25. ----------------
  26.  
  27. If you receive unresolved externals from the loader including
  28. routines as socket, connect, and others, you need to add the
  29. option "-lsocket" to the Imakefile.  If you are missing the routines
  30. inet_addr, gethostbyname, and gethostname, then you need to add
  31. "-lnsl".   The place to do this is on the line the distributed Imakefile
  32. that reads
  33.  
  34.   EXTRA_LIBRARIES  = -lm
  35. change this to
  36.   EXTRA_LIBRARIES  = -lm -lsocket -lnsl
  37.  
  38. This line is also commented out in a block with others.  You need
  39. to remove the comments.  Don't forget to run xmkmf again to 
  40. rebuild the Makefile!
  41.  
  42.     [ According to Ian MacPhedran:
  43.         Compiled fine for me with both X11R5 and OpenWindows 3.x.
  44.  
  45.         Notes: Requires both -DSYSV and -DSVR4 
  46.  
  47.         When compiling under OpenWindows, I required linking to extra libraries:
  48.         -lsocket -lnsl
  49.     ]
  50.  
  51.  
  52. I want to thank
  53.     Ian MacPhedran <macphed@dvinci.usask.ca> and
  54.     Edwin Allum <edwin@csri.toronto.edu>
  55. for the Solaris port.
  56.  
  57.  
  58.  
  59. Sun
  60. ---
  61.  
  62. "Cannot connect to host" messages.  
  63.      These are the result of Xgopher not finding the correct name
  64.      resolver to convert a host name such as gopher.uiuc.edu into an
  65.      internet address as 128.174.33.160.  
  66.  
  67.      I have had some people say that they need to use -lresolv
  68.      on the load command to get Xgopher to work, and others that insist
  69.      that -lresolve NOT be used since then Xgopher will use the NIS
  70.      name server for resolving the address.  If using or omitting
  71.      -lresolve works for you, great.  Unfortunately, though, this
  72.      probably is not the solution that will help you.
  73.  
  74.      For a full discussion of the problem and recommended solutions,
  75.      see the document "Sun-names" included with the Xgopher distribution.
  76.  
  77.  
  78. Sun: Open Windows
  79. ----------------
  80.  
  81. This section applies mostly to people trying to compile Xgopher with
  82. Sun's OpenWindows, Release 3.  If you use MIT's X11R5 distribution most
  83. of these problems will not affect you.  You cannot compile Xgopher with
  84. Sun's OpenWindows, Release 2.
  85.  
  86. There are two problems you are likely to encounter besides those
  87. addressed in the README file.  One is the "connect" problem mentioned
  88. in the previous section.
  89.  
  90. If you have compiled Xgopher with OW3, but are executing Xgopher with
  91. remote display to another system, then you are not executing the
  92. Sun-supplied script "openwin" ($OPENWINHOME/bin/openwin).  Therefore,
  93. some environment variables are not set which may be needed to let X
  94. (OW3) find the app-defaults resource file.  Try adding the following
  95. line to one of your startup files.  This is for csh, a slightly different
  96. syntax is used for sh.
  97.  
  98.     setenv XFILESEARCHPATH $OPENWINHOME/lib/%T/%N%S
  99.  
  100. In fact, the following value is suggested in the "Frequently Asked
  101. Questions" list of the Sun system managers news group in the internet
  102. (using sh syntax!):
  103.  
  104.         XFILESEARCHPATH=$OPENWINHOME/lib/%T/%N%S:/usr/lib/X11/%T/%N%S
  105.         export XFILESEARCHPATH
  106.  
  107.     If you use X11R5, you might instead want
  108.     /usr/lib/X11/%L/%T/%N%C%S:
  109.     /usr/lib/X11/%l/%T/%N%C%S:
  110.     /usr/lib/X11/%T/%N%C%S:
  111.     /usr/lib/X11/%L/%T/%N%S:
  112.     /usr/lib/X11/%l/%T/%N%S:
  113.     /usr/lib/X11/%T/%N%S:
  114.     $OPENWINHOME/lib/%T/%N%S
  115.     (put all this on one line, though, with no spaces!)
  116.  
  117.  
  118. Xgopher cannot find its application resources (defaults) file.  If you
  119. have installed the resources file in a non-standard location, read this.
  120. The above solution will also work, but this is a nice description.
  121. (Thanks to R.Stewart(Stew) Ellis for identifying this solution.)
  122.      
  123.      The startup routine for OW3 shipped by Sun sets XFILESEARCHPATH.
  124.      This is set in the shell script "openwin" stored in the bin directory
  125.      of $OPENWINHOME.  The default value is $OPENWINHOME/lib/%T/%N%S.
  126.  
  127.      If you store your X application defaults files (e.g., Xgopher.ad)
  128.      somewhere else, like in the X11R5 tree, you'd better have
  129.      XFILESEARCHPATH also indicate that directory.  For example, if your
  130.      files are stored under /usr/local/X11R5/lib/X11, you can add this
  131.      directory to your search path.  One way to do this is by putting
  132.      the following setenv into your .login file before starting OpenWindows:
  133.  
  134.          setenv XFILESEARCHPATH /usr/local/X11R5/lib/X11/%T/%N%S
  135.  
  136.      (X will normally change the %T value above to "app-defaults".)
  137.  
  138.  
  139. Hewlett-Packard
  140. ---------------
  141.  
  142. If you have trouble linking Xgopher, it may be that some functions
  143. are getting loaded from libPW.a.  The xmkmf may be adding libPW.a
  144. (-lPW) to the Makefile load library list.  You should remove the 
  145. reference to -lPW.  I don't think that libPW.a is needed by Xgopher.
  146.  
  147. Here is a helpful news posting explaining the problem that was provided
  148. to me by <hardy@golem.ps.uci.edu>:
  149.  
  150. +-----------------------------------------------------------------------------+
  151. ! Date: 8 Dec 92 15:35:33 GMT                                                 !
  152. ! References: <1992Dec6.205954.1835@lub001.lamar.edu>                         !
  153. ! Sender: gcagle@dracula (Greg Cagle)                                         !
  154. ! Reply-To: greg_cagle@mentorg.com                                            !
  155. ! Organization: Mentor Graphics                                               !
  156. ! Lines: 23                                                                   !
  157. ! Nntp-Posting-Host: dracula.mentorg.com                                      !
  158. !                                                                             !
  159. ! Try man regcmp:                                                             !
  160. !                                                                             !
  161. !       regcmp and regex are kept in /lib/libPW.a, and are linked by using the!
  162. !       -lc and -lPW options to the ld or cc command.  See WARNINGS below.    !
  163. ! ...                                                                         !
  164. !                                                                             !
  165. !  WARNINGS                                                                   !
  166. !       regcmp and regex are kept in /lib/libPW.a.  Unfortunately,            !
  167. !       /lib/libPW.a also contains some functions that have the same names as !
  168. !       functions contained in the default C library, /lib/libc.a.  To prevent!
  169. !       unexpected results due to these name conflicts, always search libc    !
  170. !       before searching libPW.  This is done with the ld (or cc) command line!
  171. !       option sequence -lc -lPW which satisfies all standard C functions     !
  172. !       from libc then searches libPW for the regcmp and regex functions      !
  173. !       (there is also an implied -lc following the explicit -lPW to satisfy  !
  174. !       any additional C functions required by regcmp and regex).             !
  175. !                                                                             !
  176. ! - Greg                                                                      !
  177. ! --------------------------------------------------------------------------- !
  178. ! Greg Cagle                                      Mentor Graphics Corporation !
  179. ! greg_cagle@mentorg.com                         Platform Technology Division !
  180. ! (503)685-1570                                                               !
  181. +-----------------------------------------------------------------------------+
  182.  
  183.  
  184.  
  185. Interactive(SunSoft) Unix 3.0 (with Interactive's X11R4 2.0)
  186. ------------------------------------------------------------
  187. Xgopher 1.3 (beta) was instlled by Sinisa Novosel (sinisa@thphys.irb.hr)
  188. on an ISC Unix system.  I have included #ifdef's in the Xgopher
  189. source based on Sinisa's experience.  The following changes should also
  190. be made:
  191.     1) One nasty thing should be done:
  192.        in file /usr/include/X11/Intrinsic.h ,
  193.        line #36 (#include <X11/Xos.h>)  should be commented-out.
  194.     
  195.     2) add -DISCX into Imakefile ('DEFINES' field)
  196.     
  197. Thanks for this port to:
  198.     - Sinisa Novosel, SysAdm, Institute Rugjer Boskovic, Croatia, Zagreb,-
  199.     -                         dep. Theor.Physics                         -
  200.     - sinisa@thphys.irb.hr
  201.  
  202.  
  203.  
  204. Dell's R4, 2.2
  205. --------------
  206. Notes from Joseph Urban (jurban@norden1.com):
  207.  
  208.     Uncomment the EXTRA_LIBRARIES line near the top of the Imakefile
  209.     and add -lresolv and -lucb to EXTRA_LIBRARIES in addition to the -lm.
  210.  
  211.  
  212. 3B2
  213. ---
  214.     Xgopher has been run on this machine, but not by me.
  215.  
  216.     Bob Tracy -- btracy@sacdm10.kelly.af.mil (ROBERT C. TRACY - RCF/SCOOP) --
  217.     made the following offer:
  218.  
  219.     > If you wish, feel free
  220.     > to mention me as a contact point for fellow 3B2 die-hards that are
  221.     > trying to get "xgopher" working :-).  N.B.: my comments apply to the
  222.     > WE32000 chipset, not the newer RISC 3B2.
  223.  
  224.  
  225.  
  226.  
  227. Personal Testing
  228. ----------------
  229.  
  230. I have had access to and have been able to compile and execute Xgopher
  231. on the following platforms.  Each one gave a clean compile with no
  232. warnings using the default imake that is provided with the version of
  233. X indicated.  The exception is the build with OpenWindows 3 on a Sun
  234. which required the work-arounds mentioned in the README file.
  235.  
  236.  
  237.  . IBM RS/6000 model 220 and other models running AIX 3.2.1
  238.        client:   MIT's X11R5
  239.        X server: IBM's AIXWindows 1.2.1
  240.        NOTE:     (If you compile with IBM's X11R4 you may still need to
  241.                   compile the Athena widget library yourself.  Compile all
  242.           the stuff under /usr/lpp/X11/Xamples, or just that library.)
  243.  
  244.  . Sun 4 (SparcStation) running SunOS 4.1.2
  245.        client:   MIT's X11R5
  246.        X server: Sun's OpenWindows 3 and remote display
  247.  
  248.        client:   Sun's OpenWindows 3
  249.        X server: Sun's OpenWindows 3 and remote display
  250.  
  251.  . Sun 4 (SparcStation) running Solaris 2.1, with /usr/ucb/cc compiler
  252.        client:   Sun's OpenWindows 3
  253.        X server: remote display
  254.  
  255.  . Sequent running Dynix 3.1.1 (a BSD-derived system)
  256.        client:   MIT's X11R5 - libraries and client compiled with gcc
  257.        X server: display to remote machine
  258.  
  259.  . Intel 486/33 running BSD/386 1.0 from BSD, Inc.
  260.        client:   MIT's X11R5 - libraries and client compiled with cc (gcc)
  261.        X server: X386 and a proprietary X386 server for high performance
  262.  
  263.  . Convex running ConvexOS (Unix)
  264.        client:   MIT's X11R5
  265.        X server: display to remote machine
  266.  
  267.  . Silicon Graphics IRIS-4D running IRIX 4.0.1
  268.        client:   Whatever SGI supplied (X11R4 variant)
  269.        X server: display to remote machine
  270.  
  271.  . Various X servers have been tested including IBM X terminals.
  272.  
  273.  
  274.  
  275. Feedback
  276. --------
  277.  
  278. Please!  If you find portability problems in Xgopher, report them
  279. to me by e-mail (Allan Tuchman, a-tuchman@uiuc.edu).  I do not
  280. read news often enough and some of the articles age off the system
  281. before I see them.  Any portability problems reported to me are
  282. normally fixed in the next release.
  283.